package com.zp.mvppractice.beans;

import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.Keep;

import java.io.Serializable;

/**
 * Created by izp on 2017/5/23.
 */
@Keep
public class Msg implements Serializable, Parcelable {
    /**
     * data_id : 484
     * product_name :
     * proto_id : 19
     * company_id : 52
     * oper_name : 张鹏
     * mc_id : 841
     * oper_id : 96
     * data_owner_id : 96
     * customer_id : -1
     * createtime : 2017-05-22 15:33:59
     * customer_name : 10086
     */
    private Long data_id;
    private Long mc_id;
    private Long oper_id;
    private Long data_owner_id;
    private Long customer_id;
    private Long proto_id;
    private Long company_id;

    private String product_name;

    private String oper_name;

    private String createtime;
    private String customer_name;

    public Long getData_id() {
        return data_id;
    }

    public Msg setData_id(Long data_id) {
        this.data_id = data_id;
        return this;
    }

    public Long getMc_id() {
        return mc_id;
    }

    public Msg setMc_id(Long mc_id) {
        this.mc_id = mc_id;
        return this;
    }

    public Long getOper_id() {
        return oper_id;
    }

    public Msg setOper_id(Long oper_id) {
        this.oper_id = oper_id;
        return this;
    }

    public Long getData_owner_id() {
        return data_owner_id;
    }

    public Msg setData_owner_id(Long data_owner_id) {
        this.data_owner_id = data_owner_id;
        return this;
    }

    public Long getCustomer_id() {
        return customer_id;
    }

    public Msg setCustomer_id(Long customer_id) {
        this.customer_id = customer_id;
        return this;
    }

    public Long getProto_id() {
        return proto_id;
    }

    public Msg setProto_id(Long proto_id) {
        this.proto_id = proto_id;
        return this;
    }

    public Long getCompany_id() {
        return company_id;
    }

    public Msg setCompany_id(Long company_id) {
        this.company_id = company_id;
        return this;
    }

    public String getProduct_name() {
        return product_name;
    }

    public Msg setProduct_name(String product_name) {
        this.product_name = product_name;
        return this;
    }

    public String getOper_name() {
        return oper_name;
    }

    public Msg setOper_name(String oper_name) {
        this.oper_name = oper_name;
        return this;
    }

    public String getCreatetime() {
        return createtime;
    }

    public Msg setCreatetime(String createtime) {
        this.createtime = createtime;
        return this;
    }

    public String getCustomer_name() {
        return customer_name;
    }

    public Msg setCustomer_name(String customer_name) {
        this.customer_name = customer_name;
        return this;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.data_id);
        dest.writeValue(this.mc_id);
        dest.writeValue(this.oper_id);
        dest.writeValue(this.data_owner_id);
        dest.writeValue(this.customer_id);
        dest.writeValue(this.proto_id);
        dest.writeValue(this.company_id);
        dest.writeString(this.product_name);
        dest.writeString(this.oper_name);
        dest.writeString(this.createtime);
        dest.writeString(this.customer_name);
    }

    public Msg() {
    }

    protected Msg(Parcel in) {
        this.data_id = (Long) in.readValue(Long.class.getClassLoader());
        this.mc_id = (Long) in.readValue(Long.class.getClassLoader());
        this.oper_id = (Long) in.readValue(Long.class.getClassLoader());
        this.data_owner_id = (Long) in.readValue(Long.class.getClassLoader());
        this.customer_id = (Long) in.readValue(Long.class.getClassLoader());
        this.proto_id = (Long) in.readValue(Long.class.getClassLoader());
        this.company_id = (Long) in.readValue(Long.class.getClassLoader());
        this.product_name = in.readString();
        this.oper_name = in.readString();
        this.createtime = in.readString();
        this.customer_name = in.readString();
    }

    public static final Creator<Msg> CREATOR = new Creator<Msg>() {
        public Msg createFromParcel(Parcel source) {
            return new Msg(source);
        }

        public Msg[] newArray(int size) {
            return new Msg[size];
        }
    };
}
